package com.wgc.vip.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName recharge
 */
@TableName(value ="recharge")
@Data
public class Recharge implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 会员名
     */
    private String vipName;

    /**
     * 订单号
     */
    private String orderNumber;

    /**
     * 充值金额
     */
    private String rechargeAmount1;

    /**
     * 充值方式
     */
    private String rechargeMethod;

    /**
     * 支付状态
     */
    private String status;

    /**
     * 充值时间
     */
    private String rechargeTime;

    /**
     * 支付时间
     */
    private String paymentTime;

    /**
     * 
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Recharge other = (Recharge) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getVipName() == null ? other.getVipName() == null : this.getVipName().equals(other.getVipName()))
            && (this.getOrderNumber() == null ? other.getOrderNumber() == null : this.getOrderNumber().equals(other.getOrderNumber()))
            && (this.getRechargeAmount1() == null ? other.getRechargeAmount1() == null : this.getRechargeAmount1().equals(other.getRechargeAmount1()))
            && (this.getRechargeMethod() == null ? other.getRechargeMethod() == null : this.getRechargeMethod().equals(other.getRechargeMethod()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getRechargeTime() == null ? other.getRechargeTime() == null : this.getRechargeTime().equals(other.getRechargeTime()))
            && (this.getPaymentTime() == null ? other.getPaymentTime() == null : this.getPaymentTime().equals(other.getPaymentTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getVipName() == null) ? 0 : getVipName().hashCode());
        result = prime * result + ((getOrderNumber() == null) ? 0 : getOrderNumber().hashCode());
        result = prime * result + ((getRechargeAmount1() == null) ? 0 : getRechargeAmount1().hashCode());
        result = prime * result + ((getRechargeMethod() == null) ? 0 : getRechargeMethod().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRechargeTime() == null) ? 0 : getRechargeTime().hashCode());
        result = prime * result + ((getPaymentTime() == null) ? 0 : getPaymentTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", vipName=").append(vipName);
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", rechargeAmount1=").append(rechargeAmount1);
        sb.append(", rechargeMethod=").append(rechargeMethod);
        sb.append(", status=").append(status);
        sb.append(", rechargeTime=").append(rechargeTime);
        sb.append(", paymentTime=").append(paymentTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}